//默认
import './index.scss'
import {getMoren}from '../../api/detection'
import {  useEffect, useState } from "react"

const App = (props) => {
  const [moren,setmoren]=useState({})
  useEffect(()=>{
    getMoren().then((res)=>{
      // console.log(res.data.data);
      setmoren(res.data.data)
    })
  },[])
  
  return (
    <>
      <div className="index_xia"
    
      >
        <span>{moren.tite}</span>
        <ol>
          <li>{moren.text}</li>
          <li>{moren.text2}</li>
          <li>{moren.text3}</li>
          <li>{moren.text4}</li>
        </ol>
        
      </div>
      <div className="index_button"
      onClick={()=>{
        props.changename('声音')
      }}
      >
          开始检测
        </div>
    </>

  )
}

export default App